namespace py audit_common
namespace java com.xhs.hawaii.thrift.common

enum AuditAccountType {
    PORCH_ACCOUNT = 0,
    SELLER = 1,
    SNS_USER = 2,
    RED_USER = 3
}

enum Channel {
    OPEN_API = 1,
    ARK = 2,
    NOAH = 3,
    ERP = 4,
    DATAGROUP = 5
}

struct AuditInfo {
    1: i64 timestamp,
    2: string id,
    3: string name,
    4: string account_number,
    5: AuditAccountType account_type,
    6: string primary_account_no,
    7: optional Channel channel
}
